package com.ruifu.worksheet;

import com.fhzncloud.cloud.common.security.annotation.EnableCloudFeignClients;
import com.fhzncloud.cloud.common.security.annotation.EnableCloudResourceServer;
import com.fhzncloud.cloud.common.swagger.annotation.EnableCloudSwagger2;
import com.github.tobato.fastdfs.FdfsClientConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

/**
 * @author yuanyundi
 * @date 2020/04/22
 */
@EnableCloudSwagger2
@EnableEurekaClient
@MapperScan("com.ruifu.worksheet.mapper")
@EnableCloudResourceServer(details = true)
@EnableCloudFeignClients(basePackages = {"com.fhzncloud.cloud","com.ruifu"})
@SpringCloudApplication
@Import(FdfsClientConfig.class)
/**
 * 解决jmx重复注册bean的问题
 */
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class CloudWorkSheetApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudWorkSheetApplication.class, args);
    }

}
